/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'
// import ModuleLayout from '@/layout/module'

const settingRouter = {
  path: '/setting',
  component: Layout,
  redirect: '/setting/default',
  name: 'Setting',
  meta: {
    title: '设置',
    icon: 'setting',
    roles: ['admin', 'founder']
  },
  children: [
    {
      path: '/setting/default',
      component: () => import('@/views/setting/system/index'),
      name: 'SettingDefault',
      meta: {
        title: '检查项目',
        icon: 'em-icon-book-o'
      }
    },
    {
      path: '/setting/voltage',
      component: () => import('@/views/setting/voltage/index'),
      name: 'SettingDefault',
      meta: {
        title: '电压等级',
        icon: 'em-icon-lightning'
      }
    },
    {
      path: '/setting/dangerlevel',
      component: () => import('@/views/setting/dangerlevel/index'),
      name: 'SettingDefault',
      meta: {
        title: '隐患等级',
        icon: 'em-icon-adjust'
      }
    },
    {
      path: '/setting/department',
      component: () => import('@/views/setting/department/index'),
      name: 'SettingInvoice',
      meta: {
        title: '责任单位',
        icon: 'em-icon-sale-whole'
      }
    }
  ]
}
export default settingRouter
